<template>
    <div>
      <table>
        <tr>
          <td>编号</td>
          <td>公司名称</td>
        </tr>
        <tr v-for="item in lucks">
          <td>{{item.id}}</td>
          <td>{{item.consumer}}</td>
        </tr>
      </table>
    </div>
</template>

<script>
    export default {
        name: "Branch",
        data(){
            return{
              lucks:[
                {
                  id:1,
                  consumer:'jiagang'
                },
                {
                  id:2,
                  consumer:'hello'
                }
              ]
            }
        },
      created() {
          const _this = this
          axios.get('http://localhost:8181/luck/findAll/'+currentPage).then(function () {
            _this.lucks = resp.data
          })
      }
    }
</script>

<style scoped>

</style>
